package com.lanmao.blog.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanmao.blog.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lanmao
 * @since 2022-03-13
 */
public interface CommentService extends IService<Comment> {

    List<Comment> listCommentByBlogId(Long blogId);

    Page<Comment> getCommentByPage(Long current, Long size);

    List<Comment> findCommentByNickname(String nickname);

    boolean deleteComment(Long id);

    int saveComment(Comment comment);
}
